SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[MarcasInsertCommand]
(
	@ID numeric(10, 0),
	@MARCA varchar(100),
	@ACTIVO bit
)
AS
	SET NOCOUNT OFF;
DECLARE @I NUMERIC(10,0) = (SELECT(ISNULL(MAX([MARCAS].ID),0))+1 FROM [MARCAS]);
	
INSERT INTO [MARCAS] ([ID], [MARCA], [ACTIVO]) VALUES (@I, @MARCA, @ACTIVO);
	
SELECT ID, MARCA, ACTIVO FROM MARCAS WHERE (ID = @I)
GO
